home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / perl / dist / os2 / Makefile < prev    next >
Encoding:
Makefile  |  1991-06-10  |  3.1 KB  |  125 lines

  1. #
  2. # Makefile for compiling Perl under OS/2
  3. #
  4. # Needs a Unix compatible make.
  5. # This makefile works for an initial compilation.  It does not
  6. # include all dependencies and thus is unsuitable for serious
  7. # development work.  Hey, I'm just inheriting what Diomidis gave me.
  8. #
  9. # Originally by Diomidis Spinellis, March 1990
  10. # Adjusted for OS/2 port by Raymond Chen, June 1990
  11. #
  12.  
  13. # Source files
  14. SRC = array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c \
  15. eval.c form.c hash.c perl.y perly.c regcomp.c regexec.c \
  16. stab.c str.c toke.c util.c os2.c popen.c director.c
  17.  
  18. # Object files
  19. OBJ = perl.obj array.obj cmd.obj cons.obj consarg.obj doarg.obj doio.obj \
  20. dolist.obj dump.obj eval.obj form.obj hash.obj perly.obj regcomp.obj \
  21. regexec.obj stab.obj str.obj toke.obj util.obj os2.obj popen.obj \
  22. director.obj suffix.obj
  23.  
  24. # Files in the OS/2 distribution
  25. DOSFILES=config.h director.c makefile os2.c popen.c suffix.c readme.os2
  26.  
  27. # Yacc flags
  28. YFLAGS=-d
  29.  
  30. # Manual pages
  31. MAN=perlman.1 perlman.2 perlman.3 perlman.4
  32.  
  33. CC=cl
  34. # CBASE = flags everybody gets
  35. # CPLAIN = flags for modules that give the compiler indigestion
  36. # CFLAGS = flags for milder modules
  37. # PERL = which version of perl to build
  38. #
  39. # For preliminary building:  No optimization, DEBUGGING set, symbols included.
  40. #CBASE=-AL -Zi -G2 -Gs -DDEBUGGING
  41. #CPLAIN=$(CBASE) -Od
  42. #CFLAGS=$(CBASE) -Od
  43. #PERL=perlsym.exe
  44.  
  45. # For the final build:  Optimization on, no DEBUGGING, symbols stripped.
  46. CBASE=-AL -Zi -G2 -Gs
  47. CPLAIN=$(CBASE) -Oilt
  48. CFLAGS=$(CBASE) -Ox
  49. PERL=perl.exe
  50.  
  51. # Destination directory for executables
  52. DESTDIR=\usr\bin
  53.  
  54. # Deliverables
  55. all: $(PERL) glob.exe
  56.  
  57. perl.exe: $(OBJ) perl.arp
  58.     link @perl.arp,perl,nul,/stack:32767 /NOE;
  59.     exehdr /nologo /newfiles /pmtype:windowcompat perl.exe >nul
  60.  
  61. perlsym.exe: $(OBJ) perl.arp
  62.     link @perl.arp,perlsym,nul,/stack:32767 /NOE /CODE;
  63.     exehdr /nologo /newfiles /pmtype:windowcompat perlsym.exe >nul
  64.  
  65. perl.arp:
  66.     echo array+cmd+cons+consarg+doarg+doio+dolist+dump+ >perl.arp
  67.     echo eval+form+hash+perl+perly+regcomp+regexec+stab+suffix+ >>perl.arp
  68.     echo str+toke+util+os2+popen+director+\c600\lib\setargv >>perl.arp
  69.  
  70. glob.exe: glob.c
  71.     $(CC) glob.c \c600\lib\setargv.obj -link /NOE
  72.     exehdr /nologo /newfiles /pmtype:windowcompat glob.exe >nul
  73.  
  74. array.obj: array.c
  75.     $(CC) $(CPLAIN) -c array.c
  76. cmd.obj: cmd.c
  77. cons.obj: cons.c perly.h
  78. consarg.obj: consarg.c
  79. #    $(CC) $(CPLAIN) -c consarg.c
  80. doarg.obj: doarg.c
  81. doio.obj: doio.c
  82. dolist.obj: dolist.c
  83. dump.obj: dump.c
  84. eval.obj: eval.c evalargs.xc
  85.     $(CC) /B3 \c600\binp\c3l $(CFLAGS) -c eval.c
  86. form.obj: form.c
  87. hash.obj: hash.c
  88. perl.obj: perl.y
  89. perly.obj: perly.c
  90. regcomp.obj: regcomp.c
  91. regexec.obj: regexec.c
  92. stab.obj: stab.c
  93.     $(CC) $(CPLAIN) -c stab.c
  94. str.obj: str.c
  95. suffix.obj: suffix.c
  96. toke.obj: toke.c
  97.     $(CC) /B3 \c600\binp\c3l $(CFLAGS) -c toke.c
  98. util.obj: util.c
  99. #    $(CC) $(CPLAIN) -c util.c
  100. perly.h: ytab.h
  101.     cp ytab.h perly.h
  102. director.obj: director.c
  103. popen.obj: popen.c
  104. os2.obj: os2.c
  105.  
  106. perl.1: $(MAN)
  107.     nroff -man $(MAN) >perl.1
  108.  
  109. install: all
  110.     exepack perl.exe $(DESTDIR)\perl.exe
  111.     exepack glob.exe $(DESTDIR)\glob.exe
  112.  
  113. clean:
  114.     rm -f *.obj *.exe perl.1 perly.h perl.arp
  115.  
  116. tags:
  117.     ctags *.c *.h *.xc
  118.  
  119. dosperl:
  120.     mv $(DOSFILES) ../perl30.new
  121.  
  122. doskit:
  123.     mv $(DOSFILES) ../os2
  124.